<%@ page language="java" pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags" %>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Frameset//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-frameset.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<base href="<%=basePath %>" />
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>农资与农产品全程供应链物流平台-转运站点信息</title>
<meta name="kewywords" content="农资与农产品全程供应链物流平台"/>
<meta name="description" content="农资与农产品全程供应链物流平台"/>
<link href="css/style.css" type="text/css" rel="stylesheet"/>
<link rel="icon" href="js/dialog/favicon.ico" type="image/x-icon"/>
<script type="text/javascript" src="js/jquery-1.9.1.js"></script>	
<script type="text/javascript" src="js/dialog/lhgdialog.js?skin=default"></script>
	<script type="text/javascript">		
		$(document).ready(function(){
		    $("#editBt").click(function(event){		    	
			    var selected_value = getCheckBoxValue();
			    if(selected_value.length == 0) {
			    	event.preventDefault();
					$.dialog.alert("你还没有选择任何内容");
					return false;
				} else if(selected_value.length > 1){
					event.preventDefault();
					$.dialog.alert("一次只能修改一条记录！",""); 
					return false;
				}
		    	window.location.href="editTransShipStation.action?selectId="+selected_value;
		    });
		    $("#deleteBt").click(function(event){		    	
			    var selected_value = getCheckBoxValue();
			    if(selected_value.length == 0) {
			    	event.preventDefault();
					$.dialog.alert("你还没有选择任何内容"); 
					return;
				}
		    	$.dialog.confirm("确定要删除吗？", 
			    	function(){			    	
						window.location.href="deleteTransShipStation.action?selectId="+selected_value;
					}, function(){}
				);
		    });
		});  
		function getCheckBoxValue(){
			var selected_value = [];    
			$("input[name='ids']:checked").each(function(){    
			 	selected_value.push($(this).val());    
			}); 		
			return selected_value;			
		}
		
	</script>
</head>
<body>
<%@include file="top.jsp" %>
<table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
	<tr>
	    <td width="187" height="37" bgcolor="#e0e0e0" class="brt bbt">
		    <div class="topleft fl">系统菜单栏</div>
		</td>
	    <td bgcolor="#e7e7e7" class=" bbt">
		    <div class="topleft fl">您现在的位置：<a href="#">首页</a>&nbsp;>&nbsp;<span>转运站点信息</span>
		    </div>
	    </td>
	</tr>
	<tr>
		<td width="187" height="100%" valign="top" bgcolor="#FFFFFF" class="brt">
			<div class="left_bk">          
				<div class="menu2">
					<%@include file="database_left.jsp" %>
				</div>        
			</div>
		</td>
		<td align="left" valign="top" bgcolor="#FFFFFF">
			<div class="content">
				<table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
					<tr>
						<td height="38" style="background:url(images/zz_tit.jpg) left top repeat-x;">
							<div class="tt_back fl">转运站点信息查询</div>
							<div class="fr">
								<img src="images/tit_right.jpg" alt="" width="103" height="38" />
							</div>
						</td>
					</tr>
			        <tr>
						<td class="borders btn">
							<table width="100%" border="0" cellspacing="0" cellpadding="0">
								<tr>
									<td height="41" bgcolor="#fffeee" style="border-bottom:#fee7bd solid 1px;">
										<form id="queryTransShipStation" action="queryTransShipStation" method="post">	
											<s:hidden  id="areaValues" name="areaValues" />		
											<table width="890" border="0" cellspacing="0" cellpadding="0" align="left">
												<tr>
												    <td width="80" align="right">站点名称：</td>
												    <td width="100" align="left">
												    	<input type="text" name="transShipmentStation.stationName" class="input_are w122" />
												    </td>												    
												    <td width="80" align="right">区  域：</td>
												    <td width="100" class="whitetdstyle" align="left">
													    <input type="text" name="transShipmentStation.stationArea" class="input_are w122" />
												    </td>
												    <td width="80" align="right">站点类型：</td>
												    <td width="100" align="left">
												    	<select name="transShipmentStation.stationType" class="input_are w122">
												    		<option value="">--请选择--</option>
												    		<option value="铁路">铁路</option>
												    		<option value="空运">空运</option>
												    		<option value="海运">海运</option>
												    	</select>
												    </td>
												    <td width="80" align="left">
												    	<input type="image" type="button" onclick="location.href='queryTransShipStation.action'" src="images/cx.jpg" />
												    </td>
												</tr>
											</table>
										</form>
									</td>
								</tr>
								<tr>
									<td align="center">
										<table width="98%" border="0" align="center" cellpadding="0" cellspacing="0">
											<tr align="left">
												<td height="42" colspan="2">
											        <input type="button" id="addBt" style="cursor: pointer;" class="buttons2" value="新  增"
											        	onclick="location.href='addTransShipStation.action'" />
											        <input type="button" id="editBt" value="修  改" class="buttons2" style="cursor: pointer;" />
											        <input type="button" id="deleteBt" value="删  除" class="buttons2" style="cursor: pointer;" />											        
										        </td>
											</tr>
											<tr>
												<td colspan="2">
												<div style="height:300px">
											        <table width="100%" border="0" cellspacing="1" cellpadding="0" bgcolor="#e3e3e3" >
														<tr class="captit">
												            <td width="4%" height="31" align="center" valign="middle">
												            	<!-- 
												            	<input type="checkbox" class="checks" />
												            	 -->
												            	 &nbsp;&nbsp;
												            </td>
												            <td width="10%" height="31" align="center" valign="middle">站点编号</td>
												            <td width="10%" height="31" align="center" valign="middle">站点名称</td>
												            <td width="10%" height="31" align="center" valign="middle">管理员</td>
												            <td width="10%" height="31" align="center" valign="middle">管理员编号</td>
												            <td width="10%" height="31" align="center" valign="middle">站点类型</td>
												            <td width="10%" height="31" align="center" valign="middle">区域</td>
												            <td width="18%" height="31" align="center" valign="middle">站点地址</td>
												            <td width="18%" height="31" align="center" valign="middle">备注</td>
														</tr>
														<s:set var="pager" value="pager"/>
														<s:iterator value="#pager.items" id="station" >
														<tr height="26" bgcolor="#efefef">
												            <td height="26" align="center" valign="middle" bgcolor="#FFFFFF">
												            	<input type="checkbox" name="ids" value="<s:property value="#station.id"/>" /></td>
												            <td height="26" align="center" valign="middle" bgcolor="#FFFFFF" class="wordblue">
												            	<s:property value="#station.id"/></td>
												            <td height="26" align="center" valign="middle" bgcolor="#FFFFFF">
													            <s:property value="#station.stationName"/>
												            </td>
															<td height="26" align="center" valign="middle" bgcolor="#FFFFFF">
												            	<s:property value="#station.stationAdmin"/></td>
												            <td height="26" align="center" valign="middle" bgcolor="#FFFFFF" class="wordblue">
												            	<s:property value="#station.stationAdminId"/></td>
												            <td height="26" align="center" valign="middle" bgcolor="#FFFFFF">
												            	<s:property value="#station.stationType"/></td>
												            <td height="26" align="center" valign="middle" bgcolor="#FFFFFF">
												            	<s:property value="#station.stationArea"/></td>
												            <td height="26" align="center" valign="middle" bgcolor="#FFFFFF">
												            	<s:property value="#station.stationLocation"/></td>
												            <td height="26" align="center" valign="middle" bgcolor="#FFFFFF" class="wordblue">
												            	<s:property value="#station.remark"/></td>
												        </tr>
														</s:iterator>
													</table>
									        	</div>
									        	</td>
											</tr>
											<tr>
										        <td width="30%" height="50">
											        
												</td>
										        <td width="70%">
													<table width="700" border="0" align="right" cellpadding="0" cellspacing="0">
														<tr>
															<td width="100%" >${pager.paginationModel}</td>
														</tr>
													</table>
												</td>
											</tr>
										</table>
									</td>
								</tr>
							</table>
						</td>
					</tr>
				</table>
			</div>
		</td>
	</tr>
</table>
<div class="bottom">版权所有：安徽朗坤物联网</div>
</body>
</html>